package com.ytkj.tradeserver.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.ytkj.tradeserver.dao.IUserInfoDao;
import com.ytkj.tradeserver.entity.UserInfo;
import com.ytkj.tradeserver.service.iservice.IUserInfoService;
import com.ytkj.tradeserver.utils.MD5Helper;

@Service
public class UserInfoServiceImpl implements IUserInfoService {

	@Resource
	private IUserInfoDao userInfoDao;

	public UserInfo getUserInfo(UserInfo user){
	   return userInfoDao.getUserInfo(user);
	}

	public int updateUserLoginTime(UserInfo user){
		return userInfoDao.updateUserLoginTime(user);
	}

	public int insertUser(UserInfo user){
		return userInfoDao.insertUser(user);
	}

	public int checkRepUser(UserInfo user){
		return userInfoDao.checkRepUser(user);
	}

}
